module.exports = {
    runtimeCompiler: true,
    publicPath: '/', // 设置打包文件相对路径
    devServer: {
        // open: process.platform === 'darwin',
        // host: 'localhost',n
        port: 8080,//
        // open: true, //配置自动启动浏览器
        proxy: {
            '/api': {
                // target: 'http://192.168.1.4:8080/',//接口地址
                target: 'http://101.200.142.75:8080/',//接口地址
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                    '^/api': ''
                }
            },
            '/newapi': {
                // target: 'http://192.168.1.4:8080/',//接口地址
                target: 'http://123.57.67.148:3000/mock/330',//接口地址
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                    '^/newapi': ''
                }
            },
        }
    },
}